﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Goldlight.Mvvm.Base;
using Goldlight.SampleApplication.LanguageResources;
using Goldlight.Mvvm.Base.Command;
using System.Windows;

namespace Goldlight.SampleApplication.ViewModels.Marketing
{
    public class ContactManagementViewModel : EditableViewModelBase
    {
        private LanguageResources.Language _language;
        private string _format;

        public ContactManagementViewModel() : base()
        {
            DataFormat = DataFormats.FileDrop;
        }

        protected override void OnInitialize()
        {
            base.OnInitialize();
            Name = Language.AddContactHeading;
            _language = new Language();
        }

        public override object Resources
        {
            get
            {
                return _language;
            }
        }

        public string DataFormat
        {
            get 
            { 
                return _format; 
            }
            set 
            {
                if (_format != value)
                {
                    _format = value;
                    OnChanged("DataFormat");
                }
            }
        }
    }
}
